import React, {Component} from 'react';
import {Text, View, Button} from 'native-base';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator();

//这是名家印谱下面的一个按钮，点了之后要去innerPerson
class APersonSelect extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() {
    return (
      <Button
        h="60"
        w="48%"
        _text={{color: '#767676'}}
        bg="#F7F7F7"
        colorScheme="#F7F7F7" //点击按钮的时候的背景颜色
        marginBottom="3"
        _text={{fontSize: 17, color: '#7B7B7B'}}
        borderRadius="0"
        onPress={() => {
          this.props.navigation.navigate('InnerPerson', {...this.props});
        }}>
        {this.props.name}
      </Button>
    );
  }
}

//抛出模块
export default APersonSelect;
